package com.etc.reflectdemo;

import com.etc.reflectdemo.entity.Book;

import java.util.List;

/**
 * @author: knowno
 * @create: 2024-09-18 14:43
 * @Version 1.0
 **/
public class TestQuery {
    public static void main(String[] args) {

        //查询图书,任何一张表的记录，都能用我们的通用查询代码
        List list = DBUtil.exQuery("select * from tb_bookinfo", Book.class);

        list.forEach(System.out::println);
    }
}
